//
//  UIButton+Extension.swift
//  Weibo
//
//  Created by xu on 2017/3/19.
//  Copyright © 2017年 xuantong. All rights reserved.
//

import UIKit

extension UIButton {
    
    convenience init(title:String,fontSize:CGFloat,textColor:UIColor,backImage:String,imageName:String) {
    
    self.init()
    
    self.setTitle(title, for: .normal)
    
    self.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
    
    self.setTitleColor(textColor, for: .normal)
    
    self.setBackgroundImage(UIImage(named:backImage), for: .normal)
        
    self.setImage(UIImage(named:imageName), for: .normal)
        
    
    
    
    }
}
